#ifndef GROUPCHATSWIDGET_H
#define GROUPCHATSWIDGET_H

#include <QWidget>
//#include <QTcpSocket>
#include <QJsonDocument>
#include <QJsonObject>

namespace Ui {
class GroupChatsWidget;
}

class GroupChatsWidget : public QWidget
{
    Q_OBJECT

public:
    explicit GroupChatsWidget(QString name, QWidget *parent = nullptr);
    ~GroupChatsWidget();

private slots:
    void on_SendBtn_clicked();

signals:
    void ConnectServer(QString ip, unsigned short port);
    void SendMessage(QJsonDocument doc);
    void ReconnectServer();
private:
    Ui::GroupChatsWidget *ui;
    QString name;

};

#endif // GROUPCHATSWIDGET_H
